//
//  InfoModel.m
//  装修管家
//
//  Created by 千锋 on 16/1/20.
//  Copyright (c) 2016年 IOS1503薛凯. All rights reserved.
//

#import "InfoModel.h"

@implementation InfoModel
-(instancetype)initWithDic:(NSDictionary *)dic{
    if (self=[super init]) {
        self.pid=[dic objectForKey:@"pid"];
        self.oldaid=[dic objectForKey:@"oldaid"];
        self.filename=[dic objectForKey:@"filename"];
        self.width=[dic objectForKey:@"width"];
        self.height=[dic objectForKey:@"height"];
        self.likenum=[dic objectForKey:@"likenum"];
        self.webUrl=[dic objectForKey:@"webUrl"];
        self.isCollection=[dic objectForKey:@"isCollection"];
    }
    return self;
}
- (NSString *)description
{
    return [NSString stringWithFormat:@"%@,%@", self.pid,self.filename];
}
//"pid": "515774",
//                          "oldaid": "10458256",
//                          "filename": "http://pic.to8to.com/case/1601/19/20160119_0ad917c15bd7f89a2f9305cmexl138ad.jpg",
//                          "width": "1200",
//                          "height": "801",
//                          "likenum": "304",
//                          "webUrl": "http://m.to8to.com/xiaoguotu/p10458256.html#from=app",
//                          "isCollection": "0"
@end
